# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=wmctrl
pkgver=1.07
pkgrel=1
pkgdesc="wmctrl is a UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager"
url="https://sites.google.com/site/tstyblo/wmctrl"
arch="all"
license="GPL"
makedepends="libxmu-dev libx11-dev glib-dev"
subpackages="$pkgname-doc"
#source="https://sites.google.com/site/tstyblo/wmctrl/wmctrl-$pkgver.tar.gz
source="$pkgname-$pkgver.tar.gz::https://deb.debian.org/debian/pool/main/w/wmctrl/wmctrl_1.07.orig.tar.gz
	fix-x86_64.patch
	"

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
4c77ad1e204e8d444f682ad1d05c0993bcab9097ac6d4b6a944556ab85acbe713f549dbaf443cd4d1226a162ce7d46fbd209c92652e87fc8e609feee74907daa  wmctrl-1.07.tar.gz
595f34d85cb08bad729d5903f3b6f9068d8e78ba9b814dc27d45082bed057b88875eaf77927a1808c9156f19f204363ff39db74a5efef1db0e41b586a975c6e3  fix-x86_64.patch
"
